﻿@using Backend.JYD.Model;
@using Backend.JYD.Model.Task;
@using Backend.JYD.Business;
@using Backend.JYD.Common;
@using Backend.JYD.BLL;
@{
    ViewBag.Title = "开始处理任务";
    Layout = "~/Views/Shared/_LayoutWin.cshtml";

    var nextStatus = ViewBag.NextStatus as TaskManager.TaskStatus?;
    var stepCode = ViewBag.StepCode as TaskManager.StepModelCode?;
}
@using (Ajax.BeginForm("process", new AjaxOptions() { OnSuccess = "afterpost" }))
{
    <div class="ui_pop_body" style="width: 600px; height: 350px;">
        <div>
            <ul class="edit-ul">
                <li class="li01" style="height:90px;">
                    <span class="s01">备注：</span>
                    <span class="s02">
                        <textarea name="remark" id="remark" rows="5" style="width:300px;"></textarea>
                    </span>
                </li>
                <li class="li01">
                    <span class="s01"></span>
                    <span class="s02">
                        <input type="submit" value="提交"/>
                        @*@Ajax.ActionLink("提交", "Process", new AjaxOptions { HttpMethod = "POST", OnSuccess = "afterpost" })*@
                        <input type="button" value="取消" onclick="closeWin()"/>
                    </span>
                </li>
            </ul>
        </div>
    </div>
    <script src="@Url.Content("~/skin/js/jquery.unobtrusive-ajax.min.js")" type="text/javascript"></script>
    <script type="text/javascript">
        function afterpost(data) {
            if (data.code) {
                closeWinAndReload();
            }
            else {
                alert(data.msg);

            }
        }
    </script>
}